Skip to main content
Feedback

Preinstallation Checklist

Preparing a Database

Quickstart requires a running MySQL database of version 8.4.2 or higher. You can choose to run MySQL DB locally on the same desktop or laptop where the Quickstart setup needs to be installed.

  • If running locally, first extract the CAM LE package on your local machine. This is required for bringing up the CAM LE DB with the pre-packaged schema.

  • If you are using a remote MySQL. i.e., outside the Docker context, then set up the MySQL database. Refer to the Preparing a database in the Installation Guide for more information.

Running MySQL 8 container in Local Docker Context

Procedure

  1. Unset the Docker environment to reset the Docker context. This ensures that MySQL is running outside the minikube context.

    eval $(minikube -p <MINIKUBE_PROFILE_NAME> docker-env -u)

    For example;

    eval $(minikube -p "minikube" docker-env -u)
  2. Run the MySQL 8 container.

    docker run -d -e MYSQL_USER=<DML USER NAME> -e MYSQL_PASSWORD=<DML USER PASSWORD> -e MYSQL_ROOT_PASSWORD=<DDL_USER_PASSWORD> -e MYSQL_DATABASE=masherysolar --name=<CONTAINER_NAME> -p <mapped port>:3306 -v </path/to/data/directory>:/var/lib/mysql -v </path/to/camle-extracted/directory>/scripts/db:/docker-entrypoint-initdb.d mysql:8.4.2

    For example;

    mkdir -p <user/home/directory>/work/mysql-data

    docker run -d -e MYSQL_USER=masheryonprem -e MYSQL_PASSWORD=<DML user password> -e MYSQL_ROOT_PASSWORD=<DDL_USER_PASSWORD> -e MYSQL_DATABASE=masherysolar --name=CAMLEDB -p 63306:3306 -v <User/home/directory>/work/mysql-data:/var/lib/mysql -v </user/home/directory/work/cam-le-ga>/scripts/db:/docker-entrypoint-initdb.d mysql:8.4.2

On this Page